package customerEnter.tool;

import customerEnter.Frame.DaoDataTransmission.WebAppName;
import customerEnter.Frame.DaoDataTransmission.WebAppsInfo;
import customerEnter.Frame.redis.Major.RedisClient;

/**
 * 项目模块的路径管理
 * 
 * 类名称：WebUrlManager 类描述： 创建人：dy 创建时间：2017-1-18 下午6:59:03
 * 
 */
public class WebUrlManager {

	private static WebUrlManager	webUrlManager;

	private WebUrlManager() {

	}

	@SuppressWarnings("static-access")
	private static WebAppName getUrlManager() {
		if (WhetherToEmpty.ObjectWhetherToEmpty(webUrlManager)) {
			webUrlManager = new WebUrlManager();
			WebAppsInfo.webAppName.setWebServerUrl_Shopping(RedisClient.getRedisTemplate().opsForValue()
					.get("yez_easyBuyMall"));
			WebAppsInfo.webAppName.setWebServerUrl_social(RedisClient.getRedisTemplate().opsForValue()
					.get("yez_easyBuyMall_social"));
			WebAppsInfo.webAppName.setWebServerUrl_userSpace(RedisClient.getRedisTemplate().opsForValue()
					.get("yez_easyBuyMall_userSpace"));
			WebAppsInfo.webAppName.setWebServerUrl_userManager(RedisClient.getRedisTemplate().opsForValue()
					.get("yez_easyBuyMall_userManager"));
		}
		return WebAppsInfo.webAppName;
	}

	public static WebAppName webUrl() {
		return getUrlManager();
	}
}
